declare starttime=`date +%s%N`
# do something 
port=9981
fileName="tempfile____x"
while read line;
do
    curl --socks4a 127.0.0.1:$port www.baidu.com &
    # /usr/bin/time -a -o log$port ./socks4a_test_more &
    echo -e "curl --socks4a 127.0.0.1:$port $line\n"
done < $fileName
# end do something
declare endtime=`date +%s%N`
c=`expr $endtime - $starttime`
c=`expr $c / 1000000`
echo "$c ms" > outtime
